<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('级别')}:</label>
        <div class="col-xs-12 col-sm-4">
            <select id="c-role" data-rule="required" class="form-control selectpicker" name="row[role]">
                <option value="0" {if 0==$row.role}selected{/if}>无</option>
                <option value="1" {if 1==$row.role}selected{/if}>视力健康大使</option>
                <option value="2" {if 2==$row.role}selected{/if}>区域服务商</option>
                <option value="3" {if 3==$row.role}selected{/if}>城市服务商</option>
            </select>
        </div>
    </div>
    
    <div class="form-group" data-favisible="role=3||role=2">
        <label class="control-label col-xs-12 col-sm-2">{:__('地区')}:</label>
        <div class="col-xs-12 col-sm-10 form-inline" data-toggle="cxselect" data-selects="province,city,area">
            <select class="province form-control" name="province" data-url="ajax/shopro_area">
            <option value="{$row.province_id|htmlentities}" selected="">{$row.province_name|htmlentities}</option>
            </select>
            <select class="city form-control" name="city"  data-url="ajax/shopro_area" data-favisible="role=3||role=2">
            <option value="{$row.city_id|htmlentities}" selected="">{$row.city_name|htmlentities}</option>
            </select>
            <select class="area form-control" name="area" data-url="ajax/shopro_area" data-favisible="role=2">
            <option value="{$row.area_id|htmlentities}" selected="">{$row.area_name|htmlentities}</option>
            </select>
        </div>
    </div>
    
    
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
